#pragma once
#include"Object.h"
#include "VideoDriver.h"

class Plane : public Object
{
private:
	int m_PositionX2;
	int m_PositionY2;
public:
	Plane(void);
	~Plane(void);

	void Render();
	void Update(float frameTime);
	void SetPositionEndPoint(int posX2, int posY2);
	//Task 2
	bool InRect(int posX, int posY);
	bool HasCollisionWithObject(Object* object);
	int  CheckCollisionWithEdge();
};
